import re
def re_test2(input_data):
    result=[]
    has_digit = re.compile(r"\d")
    has_alb = re.compile(r"[a-z]",re.I)
    has_blank = re.compile(r"\s")
    passwords = input_data.split("\n")
    for password in passwords:
        if has_digit.search(password)!=None and has_alb.search(password)!=None and has_blank.search(password)==None:
            result.append(password)
    return result

input_data = "abc123@.\n  good123...\n666educoder^\nhello123@\n123456789"
result = re_test2(input_data)
print(result)